package com.tedu.egmvcboot.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 为每个状态码和描述信息定义枚举类
 * */
@AllArgsConstructor
@Getter
public enum Status {
    //为每一种不同业务处理结果定义枚举，表达对应的状态码和提示信息
    USERNAME_PASSWORD_ERROR(10300,"用户名密码错误"),
    NOT_LOGIN(10400,"用户未登录"),
    OPERATION_SUCCESS(10100,"操作成功"),
    OPERATION_FAILED(10200,"操作失败"),
    VALIDATE_ERROR(10500,"参数校验失败");

    private Integer statusCode;
    private String message;

}
